/*
 * Copyright (C) 2012  Romain DUBOIS
 * 
 * This file is part of NeMoS - Network and Modular Software
 * 
 * NeMoS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * NeMoS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with NeMoS.  If not, see <http://www.gnu.org/licenses/>.
 */
package nemos.launch.internal;

/**
 * LevelData : The level data class.
 * 
 * @author Romain DUBOIS
 */
public class LevelData {

    /** The number of bundles started in the level */
    private int mStartedBundles;
    /** The time spent to start the level */
    private long mTimeSpent;

    /**
     * Constructor
     */
    public LevelData() {
        super();
    }

    /**
     * Constructor
     * 
     * @param pStartedBundles
     *            The number of bundles started in the level
     * @param pTimeSpent
     *            The time spent to start the level
     */
    public LevelData(final int pStartedBundles, final long pTimeSpent) {
        this();
        mStartedBundles = pStartedBundles;
        mTimeSpent = pTimeSpent;
    }

    /**
     * Get the number of bundles started in the level.
     * 
     * @return The number of bundles started in the level
     */
    public int getStartedBundles() {
        return mStartedBundles;
    }

    /**
     * Get the time spent to start the level.
     * 
     * @return The time spent to start the level
     */
    public long getTimeSpent() {
        return mTimeSpent;
    }

    /**
     * Change the number of bundles started in the level.
     * 
     * @param pStartedBundles
     *            The number of bundles started in the level
     */
    public void setStartedBundles(final int pStartedBundles) {
        mStartedBundles = pStartedBundles;
    }

    /**
     * Change the time spent to start the level.
     * 
     * @param pTimeSpent
     *            The time spent to start the level
     */
    public void setTimeSpent(final long pTimeSpent) {
        mTimeSpent = pTimeSpent;
    }
}
